package pc29;

import java.util.Scanner;
public class J10Circle {
	public static void main(String[] args) {

		double r;
		double Area;
		double Perimeter;

		Scanner sc = new Scanner(System.in);
		System.out.println("반지름 입력 : ");
		r = sc.nextDouble();

		Area = getArea(r);
		Perimeter = getPerimeter(r);
		
		System.out.println("면적 : "+Area);
		System.out.println("둘레 : "+Perimeter);

	}

	public static double getArea(double r) {
		double Area;
		return r * r * 3.14;
		
	}

	public static double getPerimeter(double r) {
		double Perimeter;
		return 2 * 3.14 * r;
		
	}
}
